package com.xxx.control.net

import com.xxx.control.bean.GatewayInitResponse
import com.xxx.control.bean.GoodsInfo
import com.xxx.control.bean.PeopleEvent
import com.xxx.control.bean.TestBean
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

/**
 * Create by Sxl on 2021/12/22.
 */
interface ApiService {

    @GET("cd/common-data/oss/config/getAliyunPolicyParams")
    suspend fun testUrl():BaseResponse<TestBean>

    @GET("cd/common-data/oss/config/getAliyunPolicyParams1")
    suspend fun testUrl1():BaseResponse<TestBean>

    //启动网关服务并初始化
    @JvmSuppressWildcards
    @POST("gateway")
    suspend fun gatewayInit(@Body map: Map<String, Any>): GatewayInitResponse

    @GET("gateway")
    suspend fun gatewayGet(): GatewayInitResponse

    @JvmSuppressWildcards
    @POST("callbackable/people")
    suspend fun people(@Body map: Map<String, Any>): String

    @JvmSuppressWildcards
    @POST("callbackable/epc")
    suspend fun epc(@Body map: Map<String, Any>): String

    @JvmSuppressWildcards
    @POST("setting/templates")
    suspend fun templates(@Body map: Map<String, Any>): String

    @JvmSuppressWildcards
    @POST("lrs/archiveInfo/getInfo")
    suspend fun getInfo(@Body map: Map<String, Any>): BaseResponse<GoodsInfo>

    @JvmSuppressWildcards
    @POST("acs/screen/alarm/add")
    suspend fun addAlarm(@Body map: Map<String, Any>): Any

    @JvmSuppressWildcards
    @POST("/acs/screen/inout/add")
    suspend fun addInOut(@Body map: Map<String, Any>): Any


}